package xhwl.hmo.mall.bean;

/**
 * Created by admin on 2017-10-30.
 */

public class Area {
    private String code;
    private String name;

    public Area(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @Override
    public boolean equals(Object obj) {
        if(obj==this)
        {
            Area other= (Area) obj;
            if(code.equals(other.getCode())&&name.equals(other.getName()))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        return false;
    }
}
